package com.ruoyi.common.core.domain.business.waterPrice;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;

/**
 * 年度执行水价定义对象 wi_price_y
 * 
 * @author ps
 * @date 2023-02-16
 */
@Data
public class WiPriceY extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 计收年度 */
    @Excel(name = "计收年度")
    @NotEmpty(message = "计收年度不能为空！")
    private String priceYr;

    /** 地块性质 */
    @Excel(name = "地块性质", readConverterExp = "0=二轮承包土地内,1=二轮承包土地外,2=水稻,3=未定")
    private String landAttr;

    /** 灌溉方式 */
    @Excel(name = "灌溉方式", readConverterExp = "0=常规灌溉,1=膜上灌溉,2=喷灌,3=滴灌,4=其他" )
    private String irrMode;

    /** 亩均水价 */
    @Excel(name = "亩均水价")
    private BigDecimal areaPrice;

    /** 方均水价 */
    @Excel(name = "方均水价")
    private BigDecimal volPrice;

    /** 备注 */
    @Excel(name = "备注")
    private String modeMark;

    private long id;

    private String delFlag;

    public void setPriceYr(String priceYr) 
    {
        this.priceYr = priceYr;
    }

    public String getPriceYr() 
    {
        return priceYr;
    }
    public void setLandAttr(String landAttr) 
    {
        this.landAttr = landAttr;
    }

    public String getLandAttr() 
    {
        return landAttr;
    }
    public void setIrrMode(String irrMode) 
    {
        this.irrMode = irrMode;
    }

    public String getIrrMode() 
    {
        return irrMode;
    }
    public void setAreaPrice(BigDecimal areaPrice)
    {
        this.areaPrice = areaPrice;
    }

    public BigDecimal getAreaPrice()
    {
        return areaPrice;
    }
    public void setVolPrice(BigDecimal volPrice)
    {
        this.volPrice = volPrice;
    }

    public BigDecimal getVolPrice()
    {
        return volPrice;
    }
    public void setModeMark(String modeMark) 
    {
        this.modeMark = modeMark;
    }

    public String getModeMark() 
    {
        return modeMark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("priceYr", getPriceYr())
            .append("landAttr", getLandAttr())
            .append("irrMode", getIrrMode())
            .append("areaPrice", getAreaPrice())
            .append("volPrice", getVolPrice())
            .append("modeMark", getModeMark())
            .toString();
    }
}
